package me.liekkas.notify.email;

public class MailResponse {

    private Integer status;

    private String msg;

    public static MailResponse fail(String msg) {
        MailResponse response = new MailResponse();
        response.setStatus(0);
        response.setMsg(msg);
        return response;
    }

    public static MailResponse success() {
        MailResponse response = new MailResponse();
        response.setStatus(1);
        return response;
    }

    public MailResponse() {
    }

    public MailResponse(String msg) {
        this.msg = msg;
    }

    public MailResponse(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
